﻿// Models/License.cs
using Prism.Mvvm;

namespace FullApp1.Modules.ModuleName.Models
{
    public class LicenseInfo : BindableBase
    {
        private string _unifiedSocialCode;
        private string _name;
        private string _type;
        private LegalPerson _legalPerson;
        private string _businessScope;
        private string _address;
        private DateTime _entryDate;

        public LicenseInfo()
        {
            EntryDate = DateTime.Today; // 默认当天
        }

        public string UnifiedSocialCode
        {
            get => _unifiedSocialCode;
            set => SetProperty(ref _unifiedSocialCode, value);
        }

        public string Name
        {
            get => _name;
            set => SetProperty(ref _name, value);
        }

        public string Type
        {
            get => _type;
            set => SetProperty(ref _type, value);
        }

        public LegalPerson legalPerson
        {
            get => _legalPerson;
            set => SetProperty(ref _legalPerson, value);
        }

        public string BusinessScope
        {
            get => _businessScope;
            set => SetProperty(ref _businessScope, value);
        }

        public string Address
        {
            get => _address;
            set => SetProperty(ref _address, value);
        }

        public DateTime EntryDate
        {
            get => _entryDate;
            set => SetProperty(ref _entryDate, value);
        }
    }


    public class BusinessRecord
{
    public string Type { get; set; } // 业务类型：申报/年检/变更
    public DateTime Date { get; set; }
    public string Operator { get; set; } // 经办人
}
}
